package com.wxp.demo08.shopping.entity;

import java.io.Serializable;

/**
 * 购物车信息
 */
public class CartInfoEntity implements Serializable {

    /**
     * 数据id
     */
    public int id;
    /**
     * 商品编号
     */
    public int goodsId;
    /**
     * 商品数量
     */
    public int count;
    /**
     * 商品信息
     */
    public GoodsInfoEntity goods;

    public CartInfoEntity() {
    }

    public CartInfoEntity(int id, int goodsId, int count) {
        this.id = id;
        this.goodsId = goodsId;
        this.count = count;
        this.goods = new GoodsInfoEntity();
    }

}
